#include "config.h"
#include "opengl.h"
#include "vr.h"
#include "logger.h"

using namespace goatgfx;

bool init_goat_graphics()
{
	info_log("initializing goat3d graphics\n");

	glewInit();

#ifdef USE_VR
	if(vr_init(VR_INIT_OCULUS) == -1) {
		fatal_log("failed to initialize the VR system\n");
		return false;
	}
#endif

	return true;
}

void shutdown_goat_graphics()
{
	vr_shutdown();
}
